function PatchTestT3Crack1
clc
%close all
addpath('../');
addpath('../../');
%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% mesh
%%%%%%%%%%%%%%%%%%%%%%%%%%%%
nodes = [ 0 0;
    1 0;
    1 1;
    0 1 ];
connectivities = [ 1 2 3;
    1 3 4];
mesh = createMesh(nodes,connectivities);
%mesh.printMyself();
%plotMesh(mesh);

%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% conditions
%%%%%%%%%%%%%%%%%%%%%%%%%%%%
lambda = linspace(0,1,101);
du = 1;
constraint = [  1 0 0 0.0 0.0;
    2 0 0 du 0.0;
    3 0 1 du 0.0;
    4 0 1 0.0 0.0   ];
setConstraints(mesh,constraint);

%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% element declaration; custom section
%%%%%%%%%%%%%%%%%%%%%%%%%%%%
M = fem2.Model(mesh);
nf = mesh.countFaces();
E = 2;
nu = 0.3;
H = -1;
ft = 0.91;
C = C_plane_stress(E,nu);
for i=1:nf
    e = fem2.MatlabStructuralElement(mesh.getFace(i-1));
    M.addElement(e);
    %create struct to contain element state variables
    es = createElementContainer(C,H,ft);
    elements(i) = es;
end

postProcessInfo.infoList = {'resistant force','crack opening Linder','check sigma1'};
postProcessInfo.infoParam = {[1 4],[],[]};

[elements,output] = solving_strategy_static_2(elements,M,...
    lambda,50,1e-6,postProcessInfo);

figure
res_node_1(:,:) = -output.resistant_force(:,1,:);
delta = lambda*du;
plot(delta,res_node_1);
% 
% plotMeshWithCrack(M,elements);
% plotDeformedMesh(mesh);

rmpath('../');
rmpath('../../');
end
